package edu.nf.bs.dao.impl;

import edu.nf.bs.dao.StationsMapper;
import edu.nf.bs.entity.Stations;
import edu.nf.bs.util.MyBatisUtils;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class StationsMapperImpl implements StationsMapper {
    @Override
    public List<Stations> queryStations(String expressId, Integer pageNum, Integer pageSize) {
        SqlSession sqlSession = MyBatisUtils.getSqlSession(true);
        StationsMapper mapper = sqlSession.getMapper(StationsMapper.class);
        List<Stations> stations = mapper.queryStations(expressId, pageNum, pageSize);
        sqlSession.close();
        return stations;
    }


}
